Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client-side search prototype #731

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ionous
Copy link
Contributor

@ionous ionous commented Jun 10, 2024

a prototype of client side searching ( really filtering ).

in the /calendar page's section for goto date and toggle details, adds a simple text input field that "on change" shows/hides <li> items based on their data-event-id attribute

  • uses minisearch (10.51 kb minimized) for client side filtering of existing event data
  • tweaks mustache generated html so that the "data-event-id" is "caldaily_id" ( was event listing id )
  • tweaks the mustache getEventHTML() , moving "set page title for specific id" to the caller that needed it.

image

i don't think its usable as is -- but might be a starting point for discussion.

- uses minisearch https://github.com/lucaong/minisearch for client side filtering of event data on the /calendar page
- tweaks mustache generated html so that the "data-event-id" is "caldaily_id" ( was event listing id )
- tweaks the mustache getEventHTML() , moving  "set page title for specific id" to the caller that needed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant